package com.efamily.ewallet.client.profit.service;

import java.util.List;

import com.efamily.ewallet.client.account.bean.AccountBean;
import com.efamily.ewallet.client.profit.bean.ProfitBean;
import com.efamily.ewallet.client.profit.bean.ProfitSearchConfig;
import com.efamily.ewallet.client.profit.bean.ProfitTypeBean;
import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface ProfitServiceAsync {
	final ProfitServiceAsync instance = GWT.create(ProfitService.class);
	void getProfits(AccountBean accountBean, ProfitSearchConfig searchConfig, PagingLoadConfig pagingConfig, AsyncCallback<PagingLoadResult<ProfitBean>> callback);
	void getProfitTypes(AccountBean accountBean, AsyncCallback<List<ProfitTypeBean>> callback);
	void addEditProfit(AccountBean accountBean, ProfitBean profit, AsyncCallback<Boolean> callback);
	void deleteProfits(AccountBean accountBean,List<Integer> profitsID, AsyncCallback<Boolean> callback);

}
